package com.hxzy.tms;

import org.apache.commons.lang3.StringUtils;

public final class Assert {
	public static final void greaterThan(long v1,long v2,String message){
		if (v1 <= v2) {
			throw new IllegalArgumentException(message);
		}
	}
	public static final void notEmpty(Object data,String message){
		if (data == null) {
			throw new IllegalArgumentException(message);
		}
	}
	
	public static final void notBlank(String data,String message){
		if (StringUtils.isBlank(data)) {
			throw new IllegalArgumentException(message);
		}
	}
}
